package org.example;

import org.example.rpc.core.RpcClientProxy;
import org.example.rpc.core.socket.client.SocketClient;

public class SocketTestClient {

    public static void main(String[] args) {
        SocketClient socketClient = new SocketClient("127.0.0.1", 8888);
        RpcClientProxy proxy = new RpcClientProxy(socketClient);
        HelloService helloService = proxy.getProxy(HelloService.class);
        HelloObject object = new HelloObject(1, " client message");
        String hello = helloService.hello(object);
        System.out.println(hello);
    }
}